home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 October: Mac OS SDK / Dev.CD Oct 00 SDK1.toast / Development Kits / Cross Platform / QuickTime 4.1.2 Windows SDK / CIncludes / CRMSerialDevices.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-04-12  |  2.0 KB  |  103 lines  |  [TEXT/R*ch]

  1. /*
  2.      File:        CRMSerialDevices.h
  3.  
  4.      Contains:    Communications Resource Manager Serial Device interfaces.
  5.  
  6.      Version:    Technology:    System 7.5
  7.                  Release:    QuickTime 4.1
  8.  
  9.      Copyright:    (c) 1988-1999, 1995, 1997-1998 by Apple Computer, Inc., all rights reserved
  10.  
  11.      Bugs?:        For bug reports, consult the following page on
  12.                  the World Wide Web:
  13.  
  14.                      http://developer.apple.com/bugreporter/
  15.  
  16. */
  17. #ifndef __CRMSERIALDEVICES__
  18. #define __CRMSERIALDEVICES__
  19.  
  20. #ifndef __MACTYPES__
  21.     #include <MacTypes.h>
  22. #endif
  23.  
  24.  
  25.  
  26.  
  27. #if PRAGMA_ONCE
  28. #pragma once
  29. #endif
  30.  
  31. #ifdef __cplusplus
  32. extern "C" {
  33. #endif
  34.  
  35. #if PRAGMA_IMPORT
  36. #pragma import on
  37. #endif
  38.  
  39. #if PRAGMA_STRUCT_ALIGN
  40.     #pragma options align=mac68k
  41. #elif PRAGMA_STRUCT_PACKPUSH
  42.     #pragma pack(push, 2)
  43. #elif PRAGMA_STRUCT_PACK
  44.     #pragma pack(2)
  45. #endif
  46.  
  47. #if CALL_NOT_IN_CARBON
  48. enum {
  49.                                                                 /*     for the crmDeviceType field of the CRMRec data structure    */
  50.     crmSerialDevice                = 1,                            /*    version of the CRMSerialRecord below    */
  51.     curCRMSerRecVers            = 1
  52. };
  53.  
  54. /* Maintains compatibility w/ apps & tools that expect an old style icon    */
  55.  
  56. struct CRMIconRecord {
  57.     long                             oldIcon[32];                /* ICN#    */
  58.     long                             oldMask[32];
  59.     Handle                             theSuite;                    /* Handle to an IconSuite    */
  60.     long                             reserved;
  61. };
  62. typedef struct CRMIconRecord            CRMIconRecord;
  63.  
  64. typedef CRMIconRecord *                    CRMIconPtr;
  65. typedef CRMIconPtr *                    CRMIconHandle;
  66.  
  67. struct CRMSerialRecord {
  68.     short                             version;
  69.     StringHandle                     inputDriverName;
  70.     StringHandle                     outputDriverName;
  71.     StringHandle                     name;
  72.     CRMIconHandle                     deviceIcon;
  73.     long                             ratedSpeed;
  74.     long                             maxSpeed;
  75.     long                             reserved;
  76. };
  77. typedef struct CRMSerialRecord            CRMSerialRecord;
  78.  
  79. typedef CRMSerialRecord *                CRMSerialPtr;
  80. #endif  /* CALL_NOT_IN_CARBON */
  81.  
  82.  
  83. #if PRAGMA_STRUCT_ALIGN
  84.     #pragma options align=reset
  85. #elif PRAGMA_STRUCT_PACKPUSH
  86.     #pragma pack(pop)
  87. #elif PRAGMA_STRUCT_PACK
  88.     #pragma pack()
  89. #endif
  90.  
  91. #ifdef PRAGMA_IMPORT_OFF
  92. #pragma import off
  93. #elif PRAGMA_IMPORT
  94. #pragma import reset
  95. #endif
  96.  
  97. #ifdef __cplusplus
  98. }
  99. #endif
  100.  
  101. #endif /* __CRMSERIALDEVICES__ */
  102.  
  103.